package com.ccc.dingtalk.mapper;

import java.util.List;

/**
 * 基础的Mapper接口，封装公共的CRUD
 */
public interface BaseMapper<T> {

    List<T> findAll();

    void insert(T entity);

    void update(T entity);

    void delete(Long id);

}
